import 'package:flutter/material.dart';

class TextTest extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("TextTest"),
      ),
      body: const Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text(
              'Hello w100',
              style: TextStyle(fontWeight: FontWeight.w100),
            ),
            Text(
              'Hello w400',
              style: TextStyle(fontWeight: FontWeight.w400),
            ),
             Text(
              'Hello w700',
              style: TextStyle(fontWeight: FontWeight.bold),
            ),
            Text(
              'Hello w900',
              style: TextStyle(fontWeight: FontWeight.w900),
            ),
            Text(
              'Hello w900',
              style: TextStyle(fontWeight: FontWeight.w900,fontStyle: FontStyle.italic),
            ),
            Text("这是一条被划掉的文字",
              style: TextStyle(
                decorationStyle: TextDecorationStyle.solid,
                decoration: TextDecoration.lineThrough,
                decorationColor: Colors.black,
                decorationThickness: 4//粗细4个单位
              ),
            ),
            Text("一行画有波浪线的文字",style: TextStyle(
              decoration: TextDecoration.underline,
              decorationStyle: TextDecorationStyle.wavy,
              decorationColor: Colors.grey,
              decorationThickness: 2
            ),),
            Text("夏天要这样写字隔开散热快 summer",style: TextStyle(letterSpacing: 4),),
            Text("单词分开 主要靠空格 lorem ipsum",style: TextStyle(
              wordSpacing: 20
            ),)
          ],
        ),
      ),
    );
  }
}
